<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=
    , initial-scale=1.0">
    <title>访问文件夹</title>
</head>
<body>
    <button>打开文件夹</button>
    <script>
        const btn = document.querySelector('button');
        btn.addEventListener('click', () => {
            showDirectoryPicker();
        })
    </script>
</body>
</html>